# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-ds-store
_pkgname=ds_store
pkgver=1.3.1
pkgrel=3
pkgdesc='A parser + crawler for .DS_Store files exposed publically.'
arch=('any')
url='https://pypi.org/project/ds_store/#files'
license=('Apache')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/ds_store-$pkgver.tar.gz")
sha512sums=('20d520cf1082f12843ae07652ccbf01c0ff1be11a54ed40839f153e0dfd283fa25997353bcc0a0c196e841eab32e467fa63079eddb22a4b5b7da3a9faffaf04a')

build() {
  cd "$_pkgname-$pkgver"

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$_pkgname-$pkgver"

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

